<#include "mcitems.ftl">
(${mappedMCItemToItemStackCode(input$item, 1)}.getEnchantmentLevel(world.registryAccess().lookupOrThrow(Registries.ENCHANTMENT).getOrThrow(${generator.map(field$enhancement, "enchantments")})) != 0)